//
//  XJNetworkTools.h
//  weiboOC
//
//  Created by 徐绩 on 16/4/18.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

//定义请求方式格式
typedef NS_ENUM(NSUInteger, XJRequestMethod) {
    
    XJRequestMethodGet,
    XJRequestMethodPost
};

@interface XJNetworkTools : AFHTTPSessionManager


//创建单例
+(instancetype)sharedTools;

- (void)request:(XJRequestMethod)method urlString:(NSString *)urlString parameters:(id)parameters finished:(void(^)(id responseObject, NSError *error))finished;

@end
